package com.geostart.constructionland.system.service;

import com.geostar.constructionland.common.entity.analyse.AnalyseVersion;
import com.geostar.constructionland.common.entity.response.ExtJsAjaxResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 分析版本服务
 *
 * @author yell
 */
@FeignClient(name = "constructionland-analyse")
public interface AnalyseVersionFeignClient {
    @RequestMapping(value = "/analyseVersion/add", method = RequestMethod.POST, consumes = "application/json")
    ExtJsAjaxResponse addAnalyseVersion(@RequestBody AnalyseVersion analyseVersion);

    @RequestMapping(value = "/analyseVersion/getAnalyseVersions", method = RequestMethod.POST)
    ExtJsAjaxResponse getAnalyseVersions(@RequestParam("page") int pageNo, @RequestParam("limit") int pageNum,
                                         @RequestParam("analyseType") String analyseType, @RequestParam("analyseName") String analyseName,
                                         @RequestParam("query_analyse_name") String query_analyse_name);

    @RequestMapping(value = "/analyseVersion/del", method = RequestMethod.POST)
    ExtJsAjaxResponse delAnalyseVersion(@RequestParam(value = "versionId") String versionId);

    @RequestMapping(value = "/analyseVersion/update",method = RequestMethod.POST,consumes = "application/json")
    ExtJsAjaxResponse updateAnalyseVersion(@RequestBody AnalyseVersion analyseVersion);
}
